﻿using Abp.Application.Services.Dto;
using System;
using System.Collections.Generic;
using Abp.MultiTenancy;

namespace FutureApp.Authorization.Dto
{
    /// <summary>
    /// 权限规则实体Dto
    /// </summary>
    public class PermissionDefinitionEntityDto : EntityDto<Guid>
    {
        /// <summary>
        /// 权限规则
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 权限概述
        /// </summary>
        public string Summary { get; set; }

        /// <summary>
        /// 多租户设置
        /// </summary>
        public MultiTenancySides MultiTenancySides { get; set; }

        /// <summary>
        /// 父权限
        /// </summary>
        public PermissionDefinitionEntityDto Parent { get; set; }

        /// <summary>
        /// 子权限
        /// </summary>
        public ICollection<PermissionDefinitionEntityDto> Children { get; set; }
    }
}
